package com.android.baseconfig.base;

/**
 * @author lei
 * @description DataResult
 * @date 2018/5/15
 */
public class DataResult<T> {

    /**
     * 总数据
     */
    public Integer total;
    /**
     * 分页请求数量
     */
    public Integer count;

    /**
     * 返回的实际数据
     */
    public T rows;


    public int getTotal() {
        return total == null ? 0 : total;
    }

    @Override
    public String toString() {
        return "BaseApiResult{" +
                ", total=" + total +
                ", count=" + count +
                ", rows=" + rows +
                '}';
    }
}
